# Contributor: Michał Polański <michal@polanski.me>
# Maintainer: Michał Polański <michal@polanski.me>
pkgname=btop
pkgver=1.2.8
pkgrel=0
pkgdesc="Resource monitor"
url="https://github.com/aristocratos/btop"
license="Apache-2.0"
arch="all"
makedepends="cmd:fmt"
source="https://github.com/aristocratos/btop/archive/v$pkgver/btop-$pkgver.tar.gz"
options="!check" # no test suite

build() {
	ADDFLAGS="-fno-ipa-cp" make
}

package() {
	make install DESTDIR="$pkgdir" PREFIX=/usr
}

sha512sums="
4b5a3685ca5cf301cd7d6556bd365892587e6811f8323ca66728022aba7cc3ff95cf591b452151c9431824dc458bc3d09e10474c7c02a944e8931c4585914f5a  btop-1.2.8.tar.gz
"
